Component org.nuxeo.ecm.platform.audit.PageProviderservice.contrib
In bundle org.nuxeo.ecm.platform.audit
Contributions
XML Source
<?xml version="1.0"?>
<component name="org.nuxeo.ecm.platform.audit.PageProviderservice.contrib">
<extension target="org.nuxeo.ecm.platform.query.api.PageProviderService"
point="providers">
<genericPageProvider name="DOCUMENT_HISTORY_PROVIDER_OLD"
class="org.nuxeo.ecm.platform.audit.api.AuditPageProvider">
<whereClause docType="BasicAuditSearch">
<fixedPart>
log.docUUID = ?
</fixedPart>
<predicate parameter="log.eventDate" operator="BETWEEN">
<field schema="basicauditsearch" name="startDate" />
<field schema="basicauditsearch" name="endDate" />
</predicate>
<predicate parameter="log.category" operator="IN">
<field schema="basicauditsearch" name="eventCategories" />
</predicate>
<predicate parameter="log.eventId" operator="=">
<field schema="basicauditsearch" name="eventId" />
</predicate>
</whereClause>
<sort column="log.eventDate" ascending="true" />
<pageSize>10</pageSize>
</genericPageProvider>
<genericPageProvider name="DOCUMENT_HISTORY_PROVIDER"
class="org.nuxeo.ecm.platform.audit.api.document.DocumentHistoryPageProvider">
<whereClause docType="BasicAuditSearch">
<predicate parameter="log.eventDate" operator="BETWEEN">
<field schema="basicauditsearch" name="startDate" />
<field schema="basicauditsearch" name="endDate" />
</predicate>
<predicate parameter="log.category" operator="IN">
<field schema="basicauditsearch" name="eventCategories" />
</predicate>
<predicate parameter="log.eventId" operator="IN">
<field schema="basicauditsearch" name="eventIds" />
</predicate>
<predicate parameter="log.principalName" operator="IN">
<field schema="basicauditsearch" name="principalNames" />
</predicate>
</whereClause>
<sort column="log.eventDate" ascending="true" />
<sort column="log.id" ascending="true" />
<pageSize>10</pageSize>
</genericPageProvider>
</extension>
</component>